package com.base.extendsdemo;

class Father{
	private int age;
	private String name;
	
	public Father(){
	   System.out.println("父类的构造方法");	
	}
}

class Son extends Father {
	public Son(){
		super();//在Son中编译的时候会加上它的
		System.out.println("子类的构造方法");
	}
}

public class ExtendsDemo03 {
	public static void main(String[] args) {
		Son s=new Son();
		
	}
}